package guestbook

import db "tacitus/library/database"

type Guestbook struct {
	ID int64 `json:"id" xorm:"pk autoincr"`
	UserID int64 `json:"user_id"`
	Content string `json:"content"`
	Contact string `json:"contact"`
	CreateTime int64 `json:"create_time"`
	ReplyUserID int64 `json:"reply_user_id"`
	ReplyContent string `json:"reply_content"`
	ReplyTime int64 `json:"reply_time"`
	Publicity int `json:"publicity"`
}

func (Guestbook) TableName() string {
	return db.TablePrefix+"guestbook"
}